check_PROGRAMS = test_server test_cexpert_lib
test_server_CXXFLAGS = -I$(top_srcdir)/include -Werror -Wall
test_server_SOURCES = $(top_srcdir)/src/DBChecker.cpp $(top_srcdir)/src/ShMem.cpp $(top_srcdir)/src/logger.cpp server.cpp $(top_srcdir)/src/FLock.cpp $(top_srcdir)/src/Driver.cpp
test_server_LDADD = -lrt -lmysqlclient_r -lsybdb ../src/drivers/libcexpertmysql.a ../src/drivers/libcexpertmssql.a ../src/drivers/libcexperttcp.a ../src/drivers/libcexpertmongo.a ../src/drivers/libcexperthttp.a -lboost_thread -lcurl /usr/lib/libmongoclient.a

test_cexpert_lib_CXXFLAGS = -I$(top_srcdir)/include -Werror -Wall
test_cexpert_lib_SOURCES = client.cpp $(top_srcdir)/src/Driver.cpp
test_cexpert_lib_LDADD = -lrt  -lmysqlclient_r -lsybdb ../interfaces/C/libcexpert.a  ../src/drivers/libcexpertmysql.a ../src/drivers/libcexpertmssql.a ../src/drivers/libcexperttcp.a ../src/drivers/libcexpertmongo.a ../src/drivers/libcexperthttp.a -lboost_thread -lcurl /usr/lib/libmongoclient.a

TESTS_ENVIRONMENT = PATH=$(top_builddir)/src
#TESTS = test_server test_cexpert_lib
TESTS = test_cexpert_lib